package io.kljf.boot.modules.security.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author katherine
 * @version 2020-11-30
 **/
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    /**
     * 身份
     * @return
     */
    @Override
    public Object getPrincipal() {
        return token;
    }

    /**
     * 凭据
     * @return
     */
    @Override
    public Object getCredentials() {
        return token;
    }

}
